package com.qfmy.model.enums;

import com.fasterxml.jackson.annotation.JsonValue;


/**
 * @author 清风明月
 * @Package com.qfmy.model.enums
 * @date 2025/9/10
 * @description 用户状态枚举
 */
@SuppressWarnings("all")
public enum BaseStatus implements BaseEnum {

    ENABLE(1, "正常"),

    DISABLE(0, "禁用"),

    WAIT_DELETE(2, "待注销");


    /**
     * 枚举值
     */
    @JsonValue
    private Integer code;

    /**
     * 枚举描述
     */
    private String name;

    BaseStatus(Integer code, String name) {
        this.code = code;
        this.name = name;
    }

    /**
     * 获取枚举值
     * @return
     */
    @Override
    public Integer getCode() {
        return this.code;
    }

    /**
     * 获取枚举描述
     * @return
     */
    @Override
    public String getName() {
        return this.name;
    }
}
